﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLZJFurnitureSCM.DAL;
using QLZJFurnitureSCM.Model;

namespace QLZJFurnitureSCM.BLL
{
    public class OrderService
    {
        private IBaseDAO<Order> baseDAO = new OrderDAO();
        private IOrderDAO orderDAO = new OrderDAO();

        public Order Insert(Order order)
        {
            return baseDAO.Create(order);
        }

        public List<Order> FindAll()
        {
            return baseDAO.ReadAll();
        }

        public List<Order> FindUnPayOrder()
        {
            return orderDAO.FindUnPayOrder();
        }

        public bool UpdatePayStatus(Order order)
        {
            return orderDAO.UpdatePayStatus(order);
        }
    }
}
